import React from 'react';
import { Layout, Space, Typography } from 'antd';
import styles from './Footer.module.css';

const { Footer: AntFooter } = Layout;
const { Text, Link } = Typography;

const Footer = () => {
    const currentYear = new Date().getFullYear();

    return (
        <AntFooter className={styles.footer}>
            <Space direction="vertical" size="small">
                <Text type="secondary">
                    © {currentYear} 我的应用. 保留所有权利.
                </Text>
                <Space>
                    <Link href="/privacy" target="_blank">
                        隐私政策
                    </Link>
                    <Link href="/terms" target="_blank">
                        使用条款
                    </Link>
                    <Link href="/help" target="_blank">
                        帮助中心
                    </Link>
                </Space>
            </Space>
        </AntFooter>
    );
};

export default Footer;